
       <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta http-equiv="x-ua-compatible" content="ie=edge">
        <title>Exploring Different Types of Power Hearts - OnlineX</title>
        <meta content="The engine is the core component of a motorcycle, determining its performance and riding experience. This article introduces several common types of motorcycle engines and explores their characteristics, advantages, and disadvantages." name="keywords">
        <meta content="The engine is the core component of a motorcycle, determining its performance and riding experience. This article introduces several common types of motorcycle engines and explores their characteristics, advantages, and disadvantages." name="description">
        <meta property="og:url" content="https://onlinexzone.com/detail/auto/Exploring-Different-Types-of-Power-Hearts/">
        <meta content="https://onlinexzone.com/assets/news/category/auto/4.webp" property="og:image">
        <link rel="canonical" href="https://onlinexzone.com/detail/auto/Exploring-Different-Types-of-Power-Hearts/">
        <meta name="viewport"
            content="width=device-width,initial-scale=1,user-scalable=yes">
        <link rel="icon" type="image/png" href="https://onlinexzone.com/assets/favicon.ico">
        <!-- Google Tag Manager -->
        <script>(function (w, d, s, l, i) {
            w[l] = w[l] || []; w[l].push({
                'gtm.start':
                    new Date().getTime(), event: 'gtm.js'
            }); var f = d.getElementsByTagName(s)[0],
                j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; j.async = true; j.src =
                    'https://www.googletagmanager.com/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j, f);
        })(window, document, 'script', 'dataLayer', 'GTM-WQKS4BKW');</script>
        <!-- End Google Tag Manager -->
        <meta name="msapplication-TileColor" content="#808080">
        <meta name="msapplication-config"
            content="/wp-content/uploads/ico/browserconfig.xml">
        <meta name="theme-color" content="#808080">

        <link rel="stylesheet" href="https://onlinexzone.com/detail/index.css">
        <!-- <title> onlinexzone.com</title> -->
        <meta name='robots' content='max-image-preview:large' />
        <meta property='og:type' content='article'>
        <meta property='og:title' content='a nice news station'>

        <meta property='og:locale' content='en_US'>
        <meta property='og:site_name' content='onlinexzone.com'>
        <!-- 这里放在线图 -->
        <meta property='og:image:width' content='868'>
        <meta property='og:image:height' content='1300'>
        <meta property='author' content='Ryan Pratt'>
        <meta property='twitter:label1' content='Written By'>
        <meta property='twitter:data1' content='Ryan Pratt'>
        <meta property='twitter:label2' content='Est. reading time'>

        <link rel="stylesheet" href="https://onlinexzone.com/category/public/public.css">
        <link rel="canonical" href="https://onlinexzone.com/" />
        <!-- 换在线logo -->
        <meta name="msapplication-TileImage"
            content="https://onlinexzone.com/assets/logo.png" />
        <script async
            src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6907038225839490"
            crossorigin="anonymous"></script>
    </head>

    <body
        class="bi-pagetype-single post-template-default single single-post postid-22807 single-format-standard unified-pagetype-single unified-template-single unified-lang-en_US">
        <!-- noscript -->
        <noscript>
            <div class="no-js__notice">
                This website works best with JavaScript enabled. </div>
        </noscript>
        <!-- <a id="page-top" tabindex='-1'></a>
    <a class="skip-main" href="#main">Skip to main content</a> -->

         <div class="popout">
        <a class="popout__logo" href="https://onlinexzone.com/" aria-label="Go to onlinexZone Homepage">
            <img alt="onlinexZone logo" src="https://onlinexzone.com/assets/logo.png" class="popout__logo-image" width="160"
                height="30.06" />
        </a>

        <button class="popout__close" type="button" aria-label="Close Menu">

        </button>


        <nav class="popout-nav" aria-label="Pop Out Site Menu">
            <ul id="menu-popout-menu-english" class="popout-nav__list">
                <li id="menu-item-11654"
                    class="menu-item menu-item-type-taxonomy menu-item-object-category popout-nav__item menu-item-11654">
                    <a class="popout-nav__link" target="_parent"
                        href="https://onlinexzone.com/category/health/">Health</a>
                </li>
                <li id="menu-item-11659"
                    class="menu-item menu-item-type-taxonomy menu-item-object-category popout-nav__item menu-item-11659">
                    <a class="popout-nav__link" target="_parent"
                        href="https://onlinexzone.com/category/travel/">Travel</a>
                </li>
                <li id="menu-item-11657"
                    class="menu-item menu-item-type-taxonomy menu-item-object-category popout-nav__item menu-item-11657">
                    <a class="popout-nav__link" target="_parent"
                        href="https://onlinexzone.com/category/auto/">Auto</a>
                </li>
                <li id="menu-item-11655"
                    class="menu-item menu-item-type-taxonomy menu-item-object-category popout-nav__item menu-item-11655">
                    <a class="popout-nav__link" target="_parent"
                        href="https://onlinexzone.com/category/finance/">Finance</a>
                </li>
                <li id="menu-item-11656"
                    class="menu-item menu-item-type-taxonomy menu-item-object-category popout-nav__item menu-item-11656">
                    <a class="popout-nav__link" target="_parent"
                        href="https://onlinexzone.com/category/tech/">Tech</a>
                </li>
            </ul>
            <nav class="popout-secondary-nav" aria-label="Pop Out Privacy Menu" style="padding: 0;">
                <ul id="menu-popout-privacy-menu-english" class="popout-secondary-nav__list cmp__menu">
                    <li id="menu-item-11660"
                        class="menu-item menu-item-type-custom menu-item-object-custom popout-secondary-nav__item menu-item-11660">
                        <a class="popout-nav__link" target="_blank"
                            href="https://docs.google.com/document/d/17ydjwONuPcDChPCnV-DVzH6hqOB58B8TwUffEQvUYd4/pub">Privacy
                            Policy</a>
                    </li>

                </ul>
            </nav>
            <!-- <iframe src="https://onlinexzone.com/components/SidebarNav.html" style="height: 80vh;" frameborder="0" width="400px"></iframe> -->
        </nav>

    </div>
    <div class="overlay"></div>
    <header class="header">
        <!-- logo -->

        <div class="logoBox">
            <a class="logo" href="https://onlinexzone.com" target="_parent" aria-label="Go to onlinexzone.com Homepage">
                <img alt="onlinexzone.com logo" src="https://onlinexzone.com/assets/logo.png" class="logo__image" />
            </a>
            <button class="hamburger" type="button" aria-label="Show Menu"><span
                    class="hamburger__span"></span></button>
        </div>

        <!-- mobile menu toggle -->



        <!-- primary menu -->
        <nav class="nav" aria-label="Site Menu">
            <ul id="menu-primary-menu-english" class="nav__list">
                <li id="menu-item-125"
                    class="menu-item menu-item-type-taxonomy menu-item-object-category nav__item menu-item-125"><a
                        class="nav__link" target="_parent"
                        href="https://onlinexzone.com/category/health/">Health</a></li>
                <li id="menu-item-128"
                    class="menu-item menu-item-type-taxonomy menu-item-object-category nav__item menu-item-128"><a
                        class="nav__link" target="_parent"
                        href="https://onlinexzone.com/category/travel/">Travel</a></li>
                <li id="menu-item-123"
                    class="menu-item menu-item-type-taxonomy menu-item-object-category nav__item menu-item-123"><a
                        class="nav__link" target="_parent"
                        href="https://onlinexzone.com/category/auto/">Auto</a></li>
                <li id="menu-item-124"
                    class="menu-item menu-item-type-taxonomy menu-item-object-category nav__item menu-item-124"><a
                        class="nav__link" target="_parent"
                        href="https://onlinexzone.com/category/finance/">Finance</a>
                </li>
                <li id="menu-item-127"
                    class="menu-item menu-item-type-taxonomy menu-item-object-category nav__item menu-item-127"><a
                        class="nav__link" target="_parent"
                        href="https://onlinexzone.com/category/tech/">Tech</a></li>
            </ul>
        </nav>
    </header>

        <main class="main main--single-post main--featuredimage-none" id="main">
            <nav class="breadcrumb" aria-label="breadcrumb">
                <ol class="breadcrumb__list"><li class="breadcrumb__item"><a class="breadcrumb__link"
                        href="https://onlinexzone.com/">Home</a>
                </li>
                <li class="breadcrumb__item"><a class="breadcrumb__link" href="https://onlinexzone.com/category/auto/">Auto</a></li>
                </ol>
            </nav>
            <h1 class="post-title" id="h2-0">Exploring Different Types of Power Hearts </h1>

            <p class="post-read-time">11 minutes read </p>

            <div class="author-info">
                <div class="author-info__avatar" style>
                    <img width="150" height="150"
                        src="https://onlinexzone.com/assets/news/earth.png"
                        class="author-info__avatar-image" alt
                        decoding="async"
                        srcset="https://onlinexzone.com/assets/news/earth.png 400w"
                        sizes="(max-width: 150px) 100vw, 150px" />
                </div>

                <p class="author-info__author" data-post-date="Nov 21, 2023"
                    data-updated-date="Nov 21, 2023">By <span
                        class="author-info__author-name">
                         Benjamin Thomas
                        </span>
                </p>

            </div>

            <nav class="toc toc--sticky">
                <div class="toc__container">
                    <h2 class="toc__heading">Table of Contents</h2>
                    <button class="toc__toggle" type="button"
                        aria-label="Close Table of Contents">
                        <svg class="toc__toggle-icon" t="1725620702467"
                            class="icon" viewBox="0 0 1024 1024" version="1.1"
                            xmlns="http://www.w3.org/2000/svg" p-id="5202"
                            width="16" height="16"><path
                                d="M103.36376499999994 666.3830590000001L485.707294 284.039529a65.445647 65.445647 0 0 1 22.467765-7.105427357601002e-15L890.5185880000001 666.383059c1.2950590000000006 2.9515289999999994 1.3552940000000042 11.264 5.329070518200751e-15 22.497882000000004l-44.995763999999994 44.96564700000001c-11.745881999999998 1.295059000000002-20.208940999999996 1.3552940000000042-22.467765 7.105427357601002e-15l-314.88000000000005-314.84988199999987a20.178824 20.178824 0 0 0-22.467765 7.105427357601002e-15L170.82729400000022 733.8465880000001c-2.198587999999999 1.2649410000000008-10.661647 1.385412000000004-22.497882000000004 5.329070518200751e-15l-44.96564700000002-44.96564699999998c-1.2950590000000028-11.143528999999997-1.3552940000000078-19.516235-5.329070518200751e-15-22.497882000000004z"
                                p-id="5203" fill="#FF7723"></path></svg>
                    </button>
                    <ul class="toc__list"> <li class="toc__item toc__item--bulleted">
                                  <a class="toc__link" href="#h2-0">Exploring Different Types of Power Hearts</a>
                              </li> <li class="toc__item toc__item--bulleted">
                                  <a class="toc__link" href="#h2-1">Single-Cylinder Engine</a>
                              </li> <li class="toc__item toc__item--bulleted">
                                  <a class="toc__link" href="#h2-2">Twin-Cylinder Engine</a>
                              </li> <li class="toc__item toc__item--bulleted">
                                  <a class="toc__link" href="#h2-3">Four-Cylinder Engine</a>
                              </li> <li class="toc__item toc__item--bulleted">
                                  <a class="toc__link" href="#h2-4">Six-Cylinder Engine</a>
                              </li> <li class="toc__item toc__item--bulleted">
                                  <a class="toc__link" href="#h2-5">Electric Engine</a>
                              </li></ul>
                </div>
            </nav>
            <article class="content" id="content"><p class="h2-0">The engine is the core component of a motorcycle, determining its performance and riding experience. This article introduces several common types of motorcycle engines and explores their characteristics, advantages, and disadvantages.</p><img decoding="async"
                class="cdn-ih size-large wp-image-22810" width="1200" height="530"
                srcset="https://onlinexzone.com/assets/news/category/auto/4.webp"
                sizes="(max-width:576px) 30vw, (max-width:992px) 50vw, (max-width:1400px) 100vw, 900w"
                data-url="https://onlinexzone.com/assets/news/category/auto/4.webp" data-attr="https://onlinexzone.com/assets/news/category/auto/4.webp"
                src="https://onlinexzone.com/assets/news/category/auto/4.webp" loading="lazy" alt="Exploring Different Types of Power Hearts"><h2 class="bulleted" id="h2-1">Single-Cylinder Engine</h2>
                    <p>The single-cylinder engine is the simplest type, commonly used in lightweight motorcycles and dirt bikes. They are simple in structure, lightweight, and easy to maintain. However, single-cylinder engines have relatively low power output and higher vibrations.</p><h2 class="bulleted" id="h2-2">Twin-Cylinder Engine</h2>
                    <p>Twin-cylinder engines come in parallel-twin and V-twin configurations. Parallel-twin engines have two cylinders arranged side by side, offering smooth power delivery and lower vibrations. V-twin engines have two cylinders arranged in a V shape, providing stronger torque and a distinctive exhaust note.</p><h2 class="bulleted" id="h2-3">Four-Cylinder Engine</h2>
                    <p>Four-cylinder engines are typically used in high-performance motorcycles, offering smooth and powerful power delivery. They are complex in design and more expensive but provide excellent acceleration and high-speed stability.</p><h2 class="bulleted" id="h2-4">Six-Cylinder Engine</h2>
                    <p>Six-cylinder engines are the “giants” among motorcycle engines, usually found in luxury cruisers and high-end sport motorcycles. They offer extremely smooth power delivery and substantial power reserves but are large and heavy, making them suitable for long-distance travel and high-speed cruising.</p><h2 class="bulleted" id="h2-5">Electric Engine</h2>
                    <p>With the growing awareness of environmental protection, electric motorcycles are gaining popularity. Electric engines have the advantages of zero emissions, low noise, and high efficiency. However, current battery technology is still developing, with range and charging time being the main challenges.</p>
            </article>
            <aside class="sidebar sidebar--single-post">
                <!-- 文章右侧top1展示广告 -->

                <!-- <div class="sidebar__block sidebar__ad-space sidebar__ad-space--dfp-desktop-sidebar-top hidden-on-mobile">
                <div class="hidden-on-mobile" id="dfp-desktop-sidebar-top">
                    <script async
                        src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6907038225839490"
                        crossorigin="anonymous"></script>
                    <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-6907038225839490"
                        data-ad-slot="2838871277" data-ad-format="auto" data-full-width-responsive="true"></ins>
                    <script>
                        (adsbygoogle = window.adsbygoogle || []).push({});
                    </script>
                </div>
            </div> -->
                <div class="sidebar__block">
                    <h2 class="section__heading section__heading--variation-3">
                        Related Posts </h2>
                    <div class="post-module post-module--variation-3">
<article class="post-module__item">
                         <a class="post-module__thumb-link" href="https://onlinexzone.com/detail/auto/The-Charm-of-Station-Wagons--Exploring-the-Audi-Avant/">
                             <span class="screen-reader-text">The Charm of Station Wagons: Exploring the Audi Avant</span>
                             <img loading='lazy' src=https://onlinexzone.com/assets/news/category/auto/7.webp?image_process=quality,q_5'
                                 data-attr=https://onlinexzone.com/assets/news/category/auto/7.webp?image_process=quality,q_5'
                                 data-url=https://onlinexzone.com/assets/news/category/auto/7.webp?image_process=quality,q_5'
                                 sizes='(max-width:576px) 30vw, (max-width:992px) 50vw, (max-width:1400px) 100vw, 900w'
                                 width="600" height="315" data-src="https://onlinexzone.com/assets/news/category/auto/7.webp?image_process=quality,q_5"
                                 class="cdn-ih post-module__thumb wp-post-image" alt="" decoding="async"
                                 srcset="https://onlinexzone.com/assets/news/category/auto/7.webp?image_process=quality,q_5"
                                 sizes="(max-width: 600px) 100vw, 600px" /><noscript><img width="600" height="315"
                                     src="https://onlinexzone.com/assets/news/category/auto/7.webp?image_process=quality,q_5"
                                     class="post-module__thumb wp-post-image" alt="" decoding="async"
                                     srcset="https://onlinexzone.com/assets/news/category/auto/7.webp?image_process=quality,q_5"
                                     sizes="(max-width: 600px) 100vw, 600px" /></noscript> </a>
                         <a class="post-module__category-link" href="https://onlinexzone.com/detail/auto/The-Charm-of-Station-Wagons--Exploring-the-Audi-Avant/"
                             aria-label="More from Health">
                             <span class="post-module__category">auto</span>
                         </a>
                         <h3 class="post-module__heading">
                             <a class="post-module__heading-link" href="https://onlinexzone.com/detail/auto/The-Charm-of-Station-Wagons--Exploring-the-Audi-Avant/">The Charm of Station Wagons: Exploring the Audi Avant</a>
                         </h3>
                         <div class="post-module__description">
                             <p>The Charm of Station Wagons: Exploring the Audi Avant [&hellip;]</p>
                         </div>
                         <a class="post-module__button"
                             href="https://onlinexzone.com/detail/auto/The-Charm-of-Station-Wagons--Exploring-the-Audi-Avant/">Read More<span
                                 class="screen-reader-text"> about What You Need To Know About Juicing</span></a>
                         <p class="post-module__read-time">4 minute read</p>
                     </article><article class="post-module__item">
                         <a class="post-module__thumb-link" href="https://onlinexzone.com/detail/auto/The-Rise-of-New-Energy-Vehicles/">
                             <span class="screen-reader-text">The Rise of New Energy Vehicles</span>
                             <img loading='lazy' src=https://onlinexzone.com/assets/news/category/auto/10.webp?image_process=quality,q_5'
                                 data-attr=https://onlinexzone.com/assets/news/category/auto/10.webp?image_process=quality,q_5'
                                 data-url=https://onlinexzone.com/assets/news/category/auto/10.webp?image_process=quality,q_5'
                                 sizes='(max-width:576px) 30vw, (max-width:992px) 50vw, (max-width:1400px) 100vw, 900w'
                                 width="600" height="315" data-src="https://onlinexzone.com/assets/news/category/auto/10.webp?image_process=quality,q_5"
                                 class="cdn-ih post-module__thumb wp-post-image" alt="" decoding="async"
                                 srcset="https://onlinexzone.com/assets/news/category/auto/10.webp?image_process=quality,q_5"
                                 sizes="(max-width: 600px) 100vw, 600px" /><noscript><img width="600" height="315"
                                     src="https://onlinexzone.com/assets/news/category/auto/10.webp?image_process=quality,q_5"
                                     class="post-module__thumb wp-post-image" alt="" decoding="async"
                                     srcset="https://onlinexzone.com/assets/news/category/auto/10.webp?image_process=quality,q_5"
                                     sizes="(max-width: 600px) 100vw, 600px" /></noscript> </a>
                         <a class="post-module__category-link" href="https://onlinexzone.com/detail/auto/The-Rise-of-New-Energy-Vehicles/"
                             aria-label="More from Health">
                             <span class="post-module__category">auto</span>
                         </a>
                         <h3 class="post-module__heading">
                             <a class="post-module__heading-link" href="https://onlinexzone.com/detail/auto/The-Rise-of-New-Energy-Vehicles/">The Rise of New Energy Vehicles</a>
                         </h3>
                         <div class="post-module__description">
                             <p>The Rise of New Energy Vehicles [&hellip;]</p>
                         </div>
                         <a class="post-module__button"
                             href="https://onlinexzone.com/detail/auto/The-Rise-of-New-Energy-Vehicles/">Read More<span
                                 class="screen-reader-text"> about What You Need To Know About Juicing</span></a>
                         <p class="post-module__read-time">4 minute read</p>
                     </article><article class="post-module__item">
                         <a class="post-module__thumb-link" href="https://onlinexzone.com/detail/auto/The-Charm-of-Formula-Racing/">
                             <span class="screen-reader-text">The Charm of Formula Racing</span>
                             <img loading='lazy' src=https://onlinexzone.com/assets/news/category/auto/6.webp?image_process=quality,q_5'
                                 data-attr=https://onlinexzone.com/assets/news/category/auto/6.webp?image_process=quality,q_5'
                                 data-url=https://onlinexzone.com/assets/news/category/auto/6.webp?image_process=quality,q_5'
                                 sizes='(max-width:576px) 30vw, (max-width:992px) 50vw, (max-width:1400px) 100vw, 900w'
                                 width="600" height="315" data-src="https://onlinexzone.com/assets/news/category/auto/6.webp?image_process=quality,q_5"
                                 class="cdn-ih post-module__thumb wp-post-image" alt="" decoding="async"
                                 srcset="https://onlinexzone.com/assets/news/category/auto/6.webp?image_process=quality,q_5"
                                 sizes="(max-width: 600px) 100vw, 600px" /><noscript><img width="600" height="315"
                                     src="https://onlinexzone.com/assets/news/category/auto/6.webp?image_process=quality,q_5"
                                     class="post-module__thumb wp-post-image" alt="" decoding="async"
                                     srcset="https://onlinexzone.com/assets/news/category/auto/6.webp?image_process=quality,q_5"
                                     sizes="(max-width: 600px) 100vw, 600px" /></noscript> </a>
                         <a class="post-module__category-link" href="https://onlinexzone.com/detail/auto/The-Charm-of-Formula-Racing/"
                             aria-label="More from Health">
                             <span class="post-module__category">auto</span>
                         </a>
                         <h3 class="post-module__heading">
                             <a class="post-module__heading-link" href="https://onlinexzone.com/detail/auto/The-Charm-of-Formula-Racing/">The Charm of Formula Racing</a>
                         </h3>
                         <div class="post-module__description">
                             <p>The Charm of Formula Racing [&hellip;]</p>
                         </div>
                         <a class="post-module__button"
                             href="https://onlinexzone.com/detail/auto/The-Charm-of-Formula-Racing/">Read More<span
                                 class="screen-reader-text"> about What You Need To Know About Juicing</span></a>
                         <p class="post-module__read-time">4 minute read</p>
                     </article></div>
                </div>
                <!-- 文章右侧top2下方广告 -->
                <!-- <div class="sidebar__block sidebar__ad-space hidden-on-mobile" id="dfp-desktop-sidebar-mid-1">
                <script async
                    src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6907038225839490"
                    crossorigin="anonymous"></script>
                <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-6907038225839490"
                    data-ad-slot="3814738147" data-ad-format="auto" data-full-width-responsive="true"></ins>
                <script>
                    (adsbygoogle = window.adsbygoogle || []).push({});
                </script>
            </div> -->

            </aside>
        </main>
   
        <!-- 底部版权 -->
        
    </body>
    <!-- Google Tag Manager (noscript) -->
    <noscript><iframe
            src="https://www.googletagmanager.com/ns.html?id=GTM-WQKS4BKW"
            height="0" width="0"
            style="display:none;visibility:hidden"></iframe></noscript>
    <!-- End Google Tag Manager (noscript) -->


    <script src="https://onlinexzone.com/utils/jquery.js"></script>
    <script type="module">
    import {getAllUrlParams, addHeadElment, newsTypeObj} from '../../../utils/common.js'
    window.onload = function () {
       
    }

</script>

    <script>
    // 隐藏侧边导航栏
    const popout = document.querySelector('.popout')
    // 关闭按钮
    const popout__close = document.querySelector('.popout__close')
    // 遮罩
    const overlay = document.querySelector('.overlay')
    const hamburger = document.querySelector('.hamburger')

    // 手机端导航栏下拉按钮
    const toc__toggle = document.querySelector('.toc__toggle')
    const toc__toggle_close = document.querySelector('.toc__toggle_close')

    const activeSvg = document.querySelector('.toc__toggle-icon')
    const navBox = document.querySelector('.toc--sticky')
    
    const toc__list = document.querySelector('.toc__list')
    
    let activeFlag = true
    toc__toggle.addEventListener('click',function (event) {
        if(activeFlag){
            navBox.classList.add("toc--active");
            activeSvg.classList.add("up")
        }else{
            navBox.classList.remove("toc--active");
            activeSvg.classList.remove("up")
        }
        activeFlag = !activeFlag
        
    })
    toc__list.addEventListener('click',function () {
        navBox.classList.remove("toc--active");
        activeSvg.classList.remove("up")
    })
   

    hamburger.addEventListener('click', function () {
        blockAside();
    })
    popout__close.addEventListener('click', function () {
        // 不知道为啥添加上反而没效果，仅限于3级页面没效果，2级和1级有
        popout.classList.remove("popout--visible");
        overlay.classList.remove("overlay--visible")
        popout__close.classList.remove("popout__close--active")

    })
    function blockAside() {
        popout.classList.add("popout--transition", "popout--visible");
        overlay.classList.add("overlay--visible")
        popout__close.classList.add("popout__close--active")
        console.log('我是父页面的方法')
    }
    // 监听主题变化做的事
    let mqList = window.matchMedia('(prefers-color-scheme: dark)');
    const logoImg = document.querySelector('.logo__image')
    function switchColor() {
        if (mqList.matches) {
            // logoImg.src = logoImg.src.split('.png')[0] + '_dark' + '.png'
        }
    }
    switchColor()

    mqList.addEventListener('change', (event) => {
        // is dark mode
        if (event.matches) {
            switchColor()
        } else {
            // not dark mode
        }
    });

</script>

</html>
       